package com.hiyee.platform.response;

/**
 * 统一 api 接口返回状态枚举类
 *
 * @author WangBin
 */
public enum ResponseStatusEnum {

    SUCCESS(200, "业务处理成功"),
    FAIL(500, "业务处理失败"),

    PARAM_ERROR(500, "请求参数错误"),

    AUTH_FAIL(401, "登录信息已失效，请重新登录"),
    AUTH_FORBIDDEN(403, "请登录后再重试"),

    UPLOAD_SCENE_NOT_FOUND(500, "不支持的上传场景"),
    UPLOAD_FILE_EXT_ERROR(500, "不支持的文件格式"),
    UPLOAD_FILE_SIZE_LIMIT(500, "文件大小超过限制"),

    LIEYING_SERVICE_SID_ERROR(500, "请填写服务sid"),
    LIEYING_SERVICE_NOT_FOUND(500, "服务不存在"),

    ;


    private Integer status;
    private String msg;

    ResponseStatusEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
